package top.shiyiri.shops.service;

import top.shiyiri.shops.bean.TimeCount;
import top.shiyiri.shops.dao.TimeCountDao;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author Aunean
 * @date 2021/12/27
 */
@Service
public class TimeCountService {

    @Autowired
    private TimeCountDao dao;

    public List<TimeCount> timeAllCountByPage(int page, int size) {
        return dao.timeAllCountByPage((page - 1) * size, size);
    }

    public int totalLines() {
        return dao.totalLines();
    }

    public List<TimeCount> timeAllCount() {
        return dao.timeAllCount();
    }
}
